package com.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("班级实体")
@TableName(value = "team")
public class Team extends BaseEntity {

    @ApiModelProperty(value = "班级名称", example = "HB软件182")
    private String name;

    @ApiModelProperty(value = "所属学院", example = "计算机学院")
    private String college;


    @ApiModelProperty(value = "班级学生列表")
    @TableField(exist = false)
    private List<User> userList;
}
